﻿using System;
using Microsoft.EntityFrameworkCore.Migrations;

#nullable disable

namespace TerritoryGame.Infrastructure.Migrations
{
    /// <inheritdoc />
    public partial class InitCreate5 : Migration
    {
        /// <inheritdoc />
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.AlterColumn<DateTime>(
                name: "updated_at",
                table: "user_levels",
                type: "timestamp with time zone",
                nullable: false,
                defaultValue: new DateTime(2025, 8, 19, 9, 29, 51, 725, DateTimeKind.Utc).AddTicks(1296),
                oldClrType: typeof(DateTime),
                oldType: "timestamp with time zone",
                oldDefaultValue: new DateTime(2025, 8, 18, 6, 22, 5, 596, DateTimeKind.Utc).AddTicks(8238));

            migrationBuilder.AlterColumn<DateTime>(
                name: "created_at",
                table: "user_levels",
                type: "timestamp with time zone",
                nullable: false,
                defaultValue: new DateTime(2025, 8, 19, 9, 29, 51, 725, DateTimeKind.Utc).AddTicks(1019),
                oldClrType: typeof(DateTime),
                oldType: "timestamp with time zone",
                oldDefaultValue: new DateTime(2025, 8, 18, 6, 22, 5, 596, DateTimeKind.Utc).AddTicks(8032));

            migrationBuilder.AddColumn<bool>(
                name: "IsReady",
                table: "players",
                type: "boolean",
                nullable: false,
                defaultValue: false);
        }

        /// <inheritdoc />
        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropColumn(
                name: "IsReady",
                table: "players");

            migrationBuilder.AlterColumn<DateTime>(
                name: "updated_at",
                table: "user_levels",
                type: "timestamp with time zone",
                nullable: false,
                defaultValue: new DateTime(2025, 8, 18, 6, 22, 5, 596, DateTimeKind.Utc).AddTicks(8238),
                oldClrType: typeof(DateTime),
                oldType: "timestamp with time zone",
                oldDefaultValue: new DateTime(2025, 8, 19, 9, 29, 51, 725, DateTimeKind.Utc).AddTicks(1296));

            migrationBuilder.AlterColumn<DateTime>(
                name: "created_at",
                table: "user_levels",
                type: "timestamp with time zone",
                nullable: false,
                defaultValue: new DateTime(2025, 8, 18, 6, 22, 5, 596, DateTimeKind.Utc).AddTicks(8032),
                oldClrType: typeof(DateTime),
                oldType: "timestamp with time zone",
                oldDefaultValue: new DateTime(2025, 8, 19, 9, 29, 51, 725, DateTimeKind.Utc).AddTicks(1019));
        }
    }
}
